﻿define(["service/service", "service/httpService"], function (service) {
    service.factory("paymentService", function (httpService) {
        var methods = {
			"get": function (params) {
				return httpService.get("/payment/get", params);
			},
			"gets": function (params) {
				return httpService.get("/payment/gets", params);
			},
			"put": function (params) {
				return httpService.put("/payment/put", params);
			},
			"post": function (params) {
				return httpService.post("/payment/post", params);
			},
			"delete": function (id) {
				return httpService.delete("/payment/delete/" + id);
			}
        }
        return methods;
    });
});